package com.sanyang.lawyer.service.finance;

import com.sanyang.lawyer.entity.Finance_open_invoice;
import com.sanyang.lawyer.mapper.finance.Finance_open_invoiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: lawyer
 * @description: 开具发票类型
 * @author: lql
 * @create: 2019-10-12 09:51
 **/
@Service
public class Finance_open_invoiceService {
        @Autowired
        private Finance_open_invoiceMapper finance_open_invoiceMapper;

        //查询全部
        public List<Finance_open_invoice> list(){
            return finance_open_invoiceMapper.selectList(null);
        }
        //查询一个
        public Finance_open_invoice getbyid(int openTypeId){
            return finance_open_invoiceMapper.selectById(openTypeId);
        }
}
